package com.ad_hccm.service.impl.Appendix;

import com.ad_hccm.dao.Appendix.AEDao;
import com.ad_hccm.domain.Appendix.AE;
import com.ad_hccm.domain.PatientUser;
import com.ad_hccm.service.Appendix.AEService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 不良事件(AE)报告表
 */
@Service
public class AEServiceImpl implements AEService {
    @Autowired
    private AEDao dao;

    @Override
    public boolean save(AE domain) {
        return dao.save(domain);
    }

    @Override
    public boolean update(AE domain) {
        return dao.update(domain);
    }

    @Override
    public List<AE> getById(String id) {
        return dao.getById(id);
    }

    @Override
    public List<AE> getAll(String id) {
        return dao.getAll(id);
    }

    @Override
    public AE getWeek(AE domain) {
        return dao.getWeek(domain);
    }

    @Override
    public boolean delete(AE domain) {
        return dao.delete(domain);
    }

    @Override
    public boolean deleteBigWeek(AE domain) {
        return dao.deleteBigWeek(domain);
    }

    @Override
    public List<AE> search(String search, String id) {
        return dao.search(search, id);
    }
}
